package demo2;

public class Test {

    //5.接口不可以进行实例化
//    IShape iShape=new IShape();


    public static void drawMap(IShape iShape){
        iShape.draw();
    }
    public static void main(String[] args) {
        IShape iShape=new Cycle();
        IShape iShape1=new Rect();


        drawMap(iShape);
        drawMap(iShape1);
    }
}
